package com.wing.cabinet.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.cabinet.model.entity.StorageInventoryKnife;
import com.wing.cabinet.model.request.StorageInventoryKnifeForm;
import com.wing.cabinet.model.response.StorageInventoryKnifeVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 刀具产品货道库存-Service
 *
 * @author
 */
public interface StorageInventoryKnifeService extends IService<StorageInventoryKnife> {

    /**
     * 添加
     *
     * @param storageInventoryKnifeForm
     * @return
     */
    int add(StorageInventoryKnifeForm storageInventoryKnifeForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<StorageInventoryKnifeVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<StorageInventoryKnifeVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    StorageInventoryKnifeVO get4appById(Long id);


    int updateRemainingTime(Integer remainingTime, String labelCode);

    /**
     * 暂存 维修 报废刀具分页列表
     * @param page
     * @param params
     * @return
     */
    Page<StorageInventoryKnifeVO> findStorageInventoryKnifeList(Page page, Map<String, Object> params);

    List<StorageInventoryKnifeVO> ecxportList(Map<String, Object> params);
}
